import http from '@/utils/http'

export const reqCode = (phone) => {
  return http.get(`/app/common/generate-code/${phone}`)
}

export const reqUpload = (filePath, name = 'file') => {
  return http.upload('/app/common/upload', filePath, name)
}

export const reqRemovePic = (url) => {
  return http.delete(`/app/common/fileRemove`,url)
}